/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */

package org.gokeep.common.util;

import lombok.SneakyThrows;

import java.net.InetAddress;

public class NetUtil {
    public static String SERVER_IP;

    @SneakyThrows
    public static String getCurrentServerIp() {
        if (SERVER_IP == null) {
            return InetAddress.getLocalHost().getHostAddress();
        }
        return SERVER_IP;
    }

}
